Initiate a state change on a forest, such as a merge, restart, or attach.
Request Headers | |
---|---|
Content-Type | The MIME type of the data in the request
body. The only supported value is application/x-www-form-urlencoded .
|
Upon successful completion, MarkLogic Server returns status code 200 (ok) or 202 (Accepted).
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
Note: The properties described here are for XML payloads. In general they are the same
for JSON, with the exception that, in JSON, failover-hosts
and
forest-replicas
are expressed in singular form. For example, in JSON,
failover-hosts
is instead failover-host
and the format is:
"failover-host":["hostname"]
.
database
forest-name
enabled
host
data-directory
large-data-directory
fast-data-directory
fast-data-max-size
updates-allowed
availability
rebalancer-enable
range
This is a complex structure with the following children:
lower-bound
upper-bound
partition-number
failover-enable
failover-hosts
This is a complex structure with the following children:
failover-host
forest-backups
This is a complex structure with the following children:
forest-backup
This is a complex structure with the following children:
backup-id
backup-enabled
backup-directory
backup-type
backup-period
backup-month-day
backup-days
This is a complex structure with the following children:
backup-day
backup-start-date
backup-start-time
backup-timestamp
forest-replicas
This is a complex structure with the following children:
forest-replica
This is a complex structure with the following children:
host
replica-name
data-directory
large-data-directory
fast-data-directory
database-replication
This is a complex structure with the following children:
foreign-replicas
This is a complex structure with the following children:
foreign-replica
This is a complex structure with the following children:
foreign-cluster-name
foreign-database-name
foreign-forest-name
foreign-master
This is a complex structure with the following children:
foreign-cluster-name
foreign-database-name
foreign-forest-name
$ curl --anyauth --user user:password -X POST -i \ -d "state=attach" -d "database=Documents" \ -H "Content-type: application/x-www-form-urlencoded" \ http://localhost:8002/manage/v2/forests/example ==> The forest named example is attached to the Documents database. MarkLogic Server responds with headers similar to the following: HTTP/1.1 200 OK Content-type: application/xml Cache-Control: no-cache Expires: -1 Server: MarkLogic Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.